package com.lanou.service;

import com.github.pagehelper.PageInfo;
import com.lanou.entity.Course;
import com.lanou.entity.CourseQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CourseService
 * @Description TODO
 * @Author cuipengwei
 * @Date 2025年08月13日 11:09
 * @Version 1.0
 */
public interface CourseService {
    //查询全部
    List<Course> selectAll();
    //分页多条件查询
    PageInfo<Course> selectAllByName(Course course,Integer pageNum,Integer pageSize);
    //增加
    Integer addCourse(Course course);
    //删除
    Integer deleteCourse(Integer id);
    //修改
    Integer updateCourse(Course course);
    //根据id查询
    Course getCourseId(Integer id);

    //排序查询
    PageInfo<Course> selectCourseBySort(String sortType,String interval,int pageNum,int pageSize);
}
